package mudfox.controller;

import mudfox.entity.Result;
import mudfox.support.DateUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Welcome {
    @GetMapping("/")
    Result index() {
        Result item = new Result(getClass().getSimpleName());
        item.put("time", DateUtil.getDateTimeString());
        item.put("status", "Running");
        return item;
    }
}
